#include <windows.h>
#include <tchar.h>

#pragma comment(linker, "/EXPORT:AdministerAntidote=_AdministerAntidote@0")
extern "C" DWORD WINAPI AdministerAntidote(void)
{
	HANDLE hEvent;
	
	hEvent = OpenEvent(EVENT_ALL_ACCESS, FALSE, _T("SignalInjection"));
	
	if (hEvent != NULL)
	{
		SetEvent(hEvent);
		CloseHandle(hEvent);

		hEvent = OpenEvent(EVENT_ALL_ACCESS, FALSE, _T("FinishInjection"));
		
		if (hEvent != NULL)
		{
			WaitForSingleObject(hEvent, INFINITE);
			CloseHandle(hEvent);
		}
	}
	
	return 0;
}
